package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Chatroom;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.domain.UserChatRoom;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lishuanwang
 */
public interface UserChatRoomMapper {
    int insert(UserChatRoom record);

    /**
     * 通过用
     * @param groupId
     * @return
     */
    List<User> listUserByChatRoomId(Long groupId);


    List<Long> listUserIdByChatRoomId(Long groupId);

    List<Chatroom> listChatRoomsByUserId(@Param("userId") Long userId);
}